#include "GlobalHeader.h"


int* createInteger()
{
    int *a = (int*)malloc(sizeof(int));
    if(a == NULL)
    {   
        printf("堆上空间申请失败，程序结束!\n");
        exit(-1);
    }
    *a = 10;
    return a;
}

int main()
{
    int *a = createInteger();
    printf("%d\n",*a);
    return 0;
}